use serde::Deserialize;
use share::core::channel::Channel;
use share::core::native_version::NativeVersion;
use share::core::resource_version::ResourceVersion;

#[derive(Deserialize)]
pub struct GetUpdateInfoRequest {
    pub channel: Channel,
    pub version: NativeVersion,
    pub device_id: Option<String>,
}

#[derive(Deserialize, Debug)]
pub struct PostLogRequest {
    pub channel: Channel,
    pub version: NativeVersion,
    pub group: u32,
    pub raw: Option<ResourceVersion>,
    pub default: Option<ResourceVersion>,
    pub id: Option<String>,
    pub name: Option<String>,
    pub level: Option<u32>,
    pub stack_trace: Option<String>,
    pub exception: Option<String>,
    pub message: Option<String>,
}
